package com.woniuxy.base.service.impl;


import com.woniuxy.base.mapper.BaseProductLineRecordMapper;
import com.woniuxy.base.model.entity.BaseProductLineRecord;
import com.woniuxy.base.service.BaseProductLineRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class BaseProductLineRecordServiceImpl implements BaseProductLineRecordService {
    @Resource
    private BaseProductLineRecordMapper recordMapper;
    @Override
    public void add(BaseProductLineRecord productLineRecord) {
        recordMapper.insert(productLineRecord);
    }

    @Override
    public List<BaseProductLineRecord> detail(Integer productLineId) {
        Map<String,Object> condition = new HashMap<>();
        condition.put("product_line_id", productLineId);
        return recordMapper.selectByMap(condition);
    }
}
